<?php

/************************************

EasyCB, Community Forum Software
Copyright (C) 2007  Jonathon D. Keogh <jonathon.keogh@gmail.com>

This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License along
with this program; if not, write to the Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.

$Id: static.db-error.php 85 2007-09-05 00:38:22Z jonathon.keogh $

************************************/

if(!isset($_GET['server']) || !isset($_GET['error']) || !isset($_GET['query']))
{
	die("Invalid error details.");
}

// Check for magic quotes in $_GET, and remove if they're there
if(get_magic_quotes_gpc())
{
	foreach($_GET as $name => $value)
	{
		$_GET[$name] = stripslashes($value);
	}
}

?>
<HTML>

<H2>Error!</H2>
<P>A problem occured with the database server <CODE><?=htmlentities($_GET['server']) ?></CODE>. See the details below for more information.</P>

<P><TEXTAREA ROWS="5" COLS="50"><?=htmlentities($_GET['error']) ?></TEXTAREA></P>
<P><TEXTAREA ROWS="5" COLS="50"><?=htmlentities($_GET['query']) ?></TEXTAREA></P>

</HTML>